CreateDateTime(year, month, day, hour, minute, second)


Returns a valid date/time object.

See also CreateDate, CreateTime, CreateODBCDateTime, and Now.

year

Number representing the year in the range 100-9999.

month

Number representing the month of the year, ranging from 1 (January) to 12 (December).

day

Number representing the day of the month, ranging from 1 to 31.

hour

Number representing the hour, ranging from 0 to 23.

minute

Number representing the minute, ranging from 0 to 59.

second

Number representing the second, ranging from 0 to 59.